<template>
  <button class="my-button">
    <!-- slot 是一个插槽，用来接收父组件传递的内容 -->
    <slot></slot>
  </button>
</template>

<style scoped>
.my-button {
  padding: 10px 20px;
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.my-button:hover {
  background-color: #35a372;
}
</style>

